package servlet;

import java.io.PrintWriter;

public class ServletExample1 extends MyServlet {
	
	public void doGet(MyRequest request,MyResponse response){
		PrintWriter out = response.getWriter();
		MySession session = request.getMySession();
		String name = (String)session.getAttribute("name");
		
		out.println("<html>");
		out.println("<head>");
		out.println("<title>HTTP</title></head><body>");
		out.println("Hello HTTP!");
		if(name!=null){
			out.println("welcome:"+name);
		}
		out.println("</body>");
		out.println("</html>");
		out.close();
		
	}

	public void doPost(MyRequest request,MyResponse response){
		
	}


}
